#ifndef CLIENT_H_
#define	CLIENT_H_

#include "../superADT/sessADT.h"

#define KEY_FIFO_SND	"/tmp/chat_serv_listen"
#define KEY_FIFO_RCV	"/tmp/chat_serv_ticket"
#define KEY_MSG			0x22
#define KEY_SHM_SND		0x1027
#define KEY_SHM_RCV		0x1026

#define TCP_PORT		"12345"
#define TCP_HOST		"localhost"

#define USE_FIFO		1
#define USE_MSG			2
#define USE_TCP			3
#define USE_SHM 		4

#define USE_FIFO_STR	"clientFifo"
#define USE_MSG_STR		"clientMsg"
#define USE_TCP_STR		"clientTcp"
#define USE_SHM_STR 	"clientShm"



/* connection info */
typedef struct
{
	char ip[128];
	char port[6];
} connInfoT;

typedef struct TcliData
{
	int ipc;		/* Communication method to use */
	void *dest; 	/* "Port"of the IPC to use */
	sessADT sess;	/* Server session */
} TcliData;
 
#endif
